home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / HIStaticPanels.idl < prev    next >
Text File  |  1996-05-01  |  3KB  |  131 lines

  1. /*
  2.      File:        HIStaticPanels.idl
  3.  
  4.      Contains:    Interfaces for simple static visual panel classes
  5.  
  6.      Version:    Technology:    System 8.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __HISTATICPANELS_IDL__
  20. #define __HISTATICPANELS_IDL__
  21.  
  22. #include <Fonts.idl>
  23.  
  24. #include <HIPanels.idl>
  25. #include <HIStaticPanelTypes.idl>
  26.  
  27.  
  28. interface HIVisualSeparator : HIPanel
  29. {
  30.     OSStatus InitVisualSeparator (in RefLabel identifier, in HIWindow window, 
  31.         in Rect bounds, in HIVisualSeparatorType separatorType);
  32.  
  33.     HIVisualSeparatorType GetSeparatorType ();
  34.     void SetSeparatorType (in HIVisualSeparatorType separatorType);
  35.         
  36.     implementation
  37.     {
  38.         
  39.         passthru C_h    =    "#include <HIStaticPanelTypes.h>";
  40.  
  41.         passthru C_xh    =    "#include <HIStaticPanelTypes.h>";
  42.         
  43.         releaseorder:            InitVisualSeparator,
  44.                                 GetSeparatorType,
  45.                                 SetSeparatorType;
  46.     };
  47. };
  48.  
  49.  
  50. interface HIStaticPanel : HIPanel
  51. {
  52.     OSStatus InitStaticPanel(    in RefLabel identifier, 
  53.                                 in HIWindow window, 
  54.                                 in Rect bounds);
  55.  
  56.     implementation
  57.     {
  58.         
  59.         releaseorder:        InitStaticPanel;
  60.     };
  61. };
  62.  
  63.  
  64.  
  65. interface HIPicture : HIStaticPanel
  66. {
  67.     OSStatus InitPicture (in RefLabel identifier, in HIWindow window, 
  68.         in Rect bounds, in PicHandle picture);
  69.     
  70.     PicHandle GetPicture ();
  71.     void SetPicture(in PicHandle picture);
  72.     
  73.     implementation {
  74.         
  75.         releaseorder:            InitPicture,
  76.                                 GetPicture,
  77.                                 SetPicture;
  78.     };
  79. };
  80.  
  81.  
  82. interface HIIcon : HIStaticPanel 
  83. {
  84.     OSStatus InitIcon (in RefLabel identifier, in HIWindow window, in Rect bounds,
  85.         in Handle iconSuite);
  86.     
  87.     Handle GetIcon();
  88.     void SetIcon(in Handle iconSuite);
  89.     
  90.     IconAlignmentType GetAlignment ();
  91.     void SetAlignment (in IconAlignmentType alignment);
  92.     
  93.     IconTransformType GetTransform ();
  94.     void SetTransform (in IconTransformType transform);
  95.  
  96.     implementation {
  97.         
  98.         releaseorder:                InitIcon,
  99.                                     GetIcon,
  100.                                     SetIcon,
  101.                                     GetAlignment,
  102.                                     SetAlignment,
  103.                                     GetTransform,
  104.                                     SetTransform;
  105.     };
  106. };
  107.  
  108.  
  109. interface HICaption : HIStaticPanel
  110. {
  111.     OSStatus InitCaption(in RefLabel identifier, in HIWindow window, in Rect bounds,
  112.                             in TextObject text);
  113.  
  114.     void         GetCaption(out TextObject caption);
  115.     void         SetCaption(in TextObject caption);
  116.  
  117.     OSStatus    GetStrike(out TextStrikeRef theStrike);
  118.     OSStatus    SetStrike(in TextStrikeRef theStrike);
  119.     
  120.     implementation {
  121.     
  122.         releaseorder:            InitCaption,
  123.                                 GetCaption,
  124.                                 SetCaption,
  125.                                 GetStrike,
  126.                                 SetStrike;
  127.     };
  128. };
  129.  
  130. #endif
  131.